package main

import (
	"github.com/go-redis/redis"
	"fmt"
)

func main()  {
	client := redis.NewClient(&redis.Options{
		Addr:     "10.0.0.32:6279",
		Password: "", // no password set
		DB:       0,  // use default DB
	})

	pong, err := client.Ping().Result()
	fmt.Println(pong, err)

	keys, err := client.Keys("nodeId::videoId*").Result()
	fmt.Println(keys, err)

	for _,key := range keys {
		fmt.Println(key)
		client.Del(key)
	}

}
